﻿<!DOCTYPE html>
<html>
<head>
<%
    include("/static/include/title.html"){}
    include("/static/include/css.html"){}
    include("/static/include/js.html"){}
%>
</head>

<body>
<div class="layui-fluid">
	<form id="fView" class="layui-form" onsubmit="return false" action="##">
		<input type="hidden" id="dialogId" name="dialogId" value="${parameter.dialogId}"/>
		
  		<div class="layui-card">
			<!-- 如需要header信息，放开下面的comment -->
			<!-- <div class="layui-card-header">基础信息</div> -->
			<div class="layui-card-body" style="padding: 15px;">
				<!-- 如一行显示多列数据，参照下面的示例 -->
				<!-- 
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">属性1：</label>
						<div class="layui-input-inline">属性1对应数值</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">属性2：</label>
						<div class="layui-input-inline">属性1对应数值</div>
					</div>
				</div>
				-->
				<div class="layui-form-item">
					<label class="layui-form-label">头像图片：</label>
					<div style="display: inline-block">
						<img src="${article.imageUrl}" width="100px">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">标题：</label>
					<div class="layui-input-block layui-form-mid">${@team.bangbang.common.utility.LogicUtility.getHTMLString(article.title)}</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">信息摘要：</label>
					<div class="layui-input-block layui-form-mid">${@team.bangbang.common.utility.LogicUtility.getHTMLString(article.subTitle)}</div>
				</div>

				<div class="layui-form-item" style="height: 200px">
					<label class="layui-form-label">正文：</label>
					<div class="layui-input-block layui-form-mid">${article.content}</div>
				</div>

				<div class="layui-form-item">
<!--					信息分类，要想从categoryCode转成categoryName，需要在controller文件中的对应 .do函数中进行配置（遍历另一个表取值）-->
					<div class="layui-form-item" style="display: inline-block">
						<label class="layui-form-label">信息分类：</label>
						<div class="layui-input-inline layui-form-mid">${article.category.itemName!}</div>
					</div>

					<div class="layui-form-item" style="display: inline-block">
						<label class="layui-form-label">状态：</label>
						<div class="layui-input-inline layui-form-mid">${article.statusName}</div>
					</div>
				</div>

	  			<div class="layui-form-item">
					<div class="layui-form-item" style="display: inline-block">
						<label class="layui-form-label">发布人：</label>
						<div class="layui-input-inline layui-form-mid">${@team.bangbang.common.utility.LogicUtility.getHTMLString(article.posterName)}</div>
					</div>

					<div class="layui-form-item" style="display: inline-block">
						<label class="layui-form-label">更新时间：</label>
						<div class="layui-input-inline layui-form-mid">${article.updateTime, "yyyy-MM-dd HH:mm"}</div>
					</div>
				</div>


			</div>
		</div>
	</form>
</div>
</body>
<script>
	layui.use(['form'], function(){
        var form  = layui.form;
        
        // 渲染表单radio、select、checkbox
        form.render();
    });
</script>
</html>
